Skip to content

fix: the ldap module uses sprintf to write escaped h... in ldap.c#3

Merged
deconstructo merged 1 commit into
deconstructo:mainfrom
orbisai0security:fix-ldap-sprintf-buffer-overflow-v001
May 21, 2026
Merged

fix: the ldap module uses sprintf to write escaped h... in ldap.c#3
deconstructo merged 1 commit into
deconstructo:mainfrom
orbisai0security:fix-ldap-sprintf-buffer-overflow-v001

Conversation

@orbisai0security
Copy link
Copy Markdown
Contributor

Summary

Fix critical severity security issue in modules/ldap/ldap.c.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File modules/ldap/ldap.c:106
CWE CWE-120

Description: The LDAP module uses sprintf to write escaped hex characters into a buffer without bounds checking. Each escaped character expands to 4 bytes (\XX). If the input contains many characters requiring escaping, the output buffer overflows since sprintf does not perform bounds checking and there is no tracking of remaining buffer capacity.

Changes

  • modules/ldap/ldap.c

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
@deconstructo deconstructo merged commit bab4078 into deconstructo:main May 21, 2026
1 check passed
@deconstructo
Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants