CVE-2025-46397
High · 7.8CVSS
7.8
EPSS
0.3%
Published
Apr 23, 2025
CISA due date
—
Cloudanix analysis
A problem in software that handles drawings could let someone with access to your computer run harmful code by opening a specially made file.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
A buffer overflow in the bezier_spline function allows local attackers to execute arbitrary code through crafted input manipulation.
Why it matters to the business
Attackers can gain full control of affected systems, potentially leading to data breaches or system compromise. The vulnerability affects aws/aws-cdk with many dependents.
How an attack unfolds
An attacker with local access crafts malicious input that triggers the buffer overflow in bezier_spline, leading to code execution.
How to fix it
Update aws/aws-cdk to commit b396961272695cd70ac183fdaf842ffb48f5d91f or later.
How to confirm the fix worked
Verify the fixed commit is present in the codebase and test with malformed bezier spline inputs to confirm no overflow occurs.
Typical attack path
- Obtain local access to the system
- Craft malicious input targeting the bezier_spline function
- Trigger the function via local file or input manipulation
- Exploit the buffer overflow to execute arbitrary code
How to detect it
Examine system logs for crashes or unexpected behavior in processes handling bezier splines or xfig files; check for unauthorized code execution artifacts post-local access.
What your security team should do
- Apply the specified commit update immediately across all instances
- Review local input handling in drawing or spline processing code
- Monitor for any local privilege escalation attempts
The record
A flaw was found in xfig. This vulnerability allows possible code execution via local input manipulation via bezier_spline function.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:8 | transfig | 0 | 1:3.2.6a-5.el8_10 |
| AlmaLinux:9 | transfig | 0 | 1:3.2.7b-11.el9_7 |
| Debian:11 | fig2dev | 0 | 1:3.2.8-3+deb11u3 |
| Debian:12 | fig2dev | 0 | No fix |
| Debian:13 | fig2dev | 0 | 1:3.2.9a-4 |
| Debian:14 | fig2dev | 0 | 1:3.2.9a-4 |
| Mageia:9 | transfig | 0 | 3.2.9a-1.1.mga9 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP6 | transfig | 0 | 3.2.9a-150600.3.5.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | transfig | 0 | 3.2.8b-2.26.1 |
| SUSE:Linux Enterprise Workstation Extension 15 SP6 | transfig | 0 | 3.2.9a-150600.3.5.1 |
| Ubuntu:20.04:LTS | fig2dev | 0 | No fix |
| Ubuntu:22.04:LTS | fig2dev | 0 | No fix |
| Ubuntu:24.04:LTS | fig2dev | 0 | No fix |
| Ubuntu:24.10 | fig2dev | 0 | No fix |
| Ubuntu:25.04 | fig2dev | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | fig2dev | 0 | No fix |
| openSUSE:Leap 15.6 | transfig | 0 | 3.2.9a-150600.3.5.1 |
| openSUSE:Tumbleweed | transfig | 0 | 3.2.9a-3.1 |
Related vulnerabilities
- CVE-2025-46400 In xfig diagramming tool, a segmentation fault while running fig2dev allows an attacker… Also affects fig2dev
- CVE-2025-46399 A flaw was found in fig2dev. Also affects fig2dev
- CVE-2025-46398 In xfig diagramming tool, a stack-overflow while running fig2dev allows memory corruption… Also affects fig2dev
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-120
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90803 A security vulnerability has been detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90801 A security flaw has been discovered in GNU Binutils 2.47. CWE-120
- CVE-2026-42808 An issue was discovered in Bosch Sensortec COINES_SDK versions 2.0 through 2.11. The host… CWE-120