CVE-2026-3285 berry-lang berry be_lexer.c scan_string out-of-bounds
A local attacker can trigger an out-of-bounds read in the Berry language lexer, potentially causing a crash or leaking memory contents.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-3285?
CVE-2026-3285 is a medium-severity memory corruption vulnerability in berry-lang berry, published on 27 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability was determined in berry-lang berry up to 1.1.0. The affected element is the function scan_string of the file src/be_lexer.c. This manipulation causes out-of-bounds read. The attack requires local access. The exploit has been publicly disclosed and may be utilized. Patch name: 7149c59a39ba44feca261b12f06089f265fec176. Applying a patch is the recommended action to fix this issue.
Which versions are affected by CVE-2026-3285?
It affects 1 product.
Products include Berry-Lang Berry.
How do I fix CVE-2026-3285?
No fix has been published for CVE-2026-3285 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-3285 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-3285 exists.
Sources
Also known as GHSA-92ph-pr79-cv5g.