CVE-2023-46035
svg_optimizer rubygem external XML entity (XXE) vulnerability
The svg_optimizer gem before 0.3.0 for Ruby performs entity expansion on untrusted documents.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.9
The svg_optimizer gem before 0.3.0 for Ruby performs entity expansion on untrusted documents.
- Record
CVE-2023-46035- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-776
- Updated
- 2026-11-02
EUVDEUVD-2023-60669
5.9
The svg_optimizer gem before 0.3.0 for Ruby performs entity expansion on untrusted documents.
- Record
EUVD-2023-60669- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-6hvg-62q8-95v7 No score
svg_optimizer rubygem external XML entity (XXE) vulnerability
An issue in Fnando svg_optimizer v.0.2.6 allows a remote attacker to escalate privileges when optimizing untrusted SVG content.
- Record
GHSA-6hvg-62q8-95v7- Weakness
- CWE-611
- Updated
- 2026-11-02
NVD
5.9
The svg_optimizer gem before 0.3.0 for Ruby performs entity expansion on untrusted documents.
- Record
CVE-2023-46035- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-776
- Updated
- 2026-11-02
OSV
5.9
The svg_optimizer gem before 0.3.0 for Ruby performs entity expansion on untrusted documents.
- Record
CVE-2023-46035- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-776
- Updated
- 2026-11-02
OSVGHSA-6hvg-62q8-95v7 No score
svg_optimizer rubygem external XML entity (XXE) vulnerability
An issue in Fnando svg_optimizer v.0.2.6 allows a remote attacker to escalate privileges when optimizing untrusted SVG content.
- Record
GHSA-6hvg-62q8-95v7- Weakness
- CWE-611
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
svg_optimizerRubyGems |
0.2.6 to 0.2.6 | 0.3.0 |
svg_optimizerRubyGems |
0.2.6 up to 0.3.0 | 0.3.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-46035 is a medium vulnerability (CVSS 5.9) in Fnando Svg Optimizer, published October 20, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.37%, the 30th percentile. Fixed in svg_optimizer 0.3.0.
References
github.com/fnando/svg_optimizer/pull/17
github.com/rubysec/ruby-advisory-db/pull/713
github.com/fnando/svg_optimizer/commit/8244ff25b51a16892496e9d9f7191dba393f7af0
github.com/fnando/svg_optimizer/commit/b1b5013db297494daba5676b9fa4423ffc5e96fa
github.com/rubysec/ruby-advisory-db/blob/master/gems/svg_optimizer/CVE-2023-46035.yml
github.com/advisories/GHSA-6hvg-62q8-95v7
github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46035.json
nvd.nist.gov/vuln/detail/CVE-2023-46035
github.com/fnando/svg_optimizer