CVE-2022-1249
Low · 3.3CVSS
3.3
EPSS
0.2%
Published
Apr 29, 2022
CISA due date
—
Cloudanix analysis
A bug in a background signing tool can make it crash when started as a service, interrupting automated build tasks until the software is updated.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
A NULL pointer dereference in cms_set_pw_data() of cms_common.c fails to handle NULL pwdata passed from daemon.c, causing an immediate crash on all daemonization attempts.
Why it matters to the business
Unexpected crashes interrupt automated signing operations in build and CI pipelines, creating downtime and requiring manual restarts or workarounds until patched.
How an attack unfolds
An attacker with local access triggers the daemon code path that supplies NULL pwdata to cms_set_pw_data, forcing an explicit NULL dereference and process termination; no remote vector or code execution is involved.
How to fix it
Upgrade jenkinsci/job-import-plugin to commit 85ccf218080d99aad861e766e0c7a2e421025735; rebuild and redeploy any affected images or packages that embed the vulnerable code.
How to confirm the fix worked
Confirm the patched commit is present, then exercise pesign daemon startup paths and verify no crash occurs on NULL pwdata handling.
Typical attack path
- Gain local access to a host running the affected component
- Invoke pesign daemonization with parameters that pass NULL pwdata
- Trigger repeated crashes to achieve denial of service
How to detect it
Search process and system logs for pesign crashes or segmentation faults occurring during daemon startup; correlate with attempts to invoke the affected code path.
- cms_set_pw_data
- NULL pointer dereference
- pesign.*daemon
- segmentation fault.*pesign
What your security team should do
- Apply the referenced commit to all instances within the next maintenance window
- Add monitoring for pesign segmentation faults in system logs
- Limit local execution privileges for signing utilities to trusted processes only
The record
A NULL pointer dereference flaw was found in pesign's cms_set_pw_data() function of the cms_common.c file. The function fails to handle the NULL pwdata invocation from daemon.c, which leads to an explicit NULL dereference and crash on all attempts to daemonize pesign.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | pesign | 0 | No fix |
| Ubuntu:18.04:LTS | pesign | 0 | No fix |
| Ubuntu:20.04:LTS | pesign | 0 | No fix |
| Ubuntu:22.04:LTS | pesign | 0 | No fix |
| Ubuntu:24.04:LTS | pesign | 0 | No fix |
| Ubuntu:24.10 | pesign | 0 | No fix |
| Ubuntu:25.04 | pesign | 0 | No fix |
| Ubuntu:25.10 | pesign | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | pesign | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | pesign | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | pesign | 0 | No fix |
Related vulnerabilities
- CVE-2022-3560 A flaw was found in pesign. Also affects pesign
- CVE-2026-112405 Pillow is a Python imaging library. CWE-476
- CVE-2026-112392 Pillow is a Python imaging library. CWE-476
- CVE-2026-100348 kin-openapi is a Go project for handling OpenAPI files. CWE-476
- CVE-2026-100349 kin-openapi is a Go project for handling OpenAPI files. CWE-476
- CVE-2026-109280 ImageMagick 7.1.0-20 before 7.1.2-32 contains a use after free vulnerability in the -fx… CWE-476
- CVE-2026-109272 ImageMagick 7.1.1-31 before 7.1.2-32 contains a NULL pointer dereference in the… CWE-476
- CVE-2026-109258 ImageMagick 7.1.0-20 before 7.1.2-32 contains an invalid memory free vulnerability in the… CWE-476